<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>乡土味士 - 后台管理中心 - 拼团订单详情</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">

    <style>
        /* Additional style to fix warning dialog position */
        .control-label {
            padding-top: 0!important;
        }
        .form-group{
            margin-bottom: 30px;
        }
    </style>

</head>



<body class="gray-bg">

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">

        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">购买人</label>
                            <div class="col-sm-5">
                                <p>
                                    {$member.nickname}
                                    <img style="width:50px;height:50px;border-radius:50%;margin-left: 5px;" src="{$member.avatar}"/>
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">收货人信息</label>
                            <div class="col-sm-5">
                                <p>
                                    {$member.realname} {$member.mobile} <?=$addr_info['pro'].$addr_info['city'].$addr_info['area'].$addr_info['title']?>
                                </p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品标题</label>
                            <div class="col-sm-5">
                                <p>
                                    <button type="button" class="btn btn-outline btn-primary" style="padding: 0;margin: 0">
                                        <?=getunit($goods['category'])?>
                                    </button>
                                    {$goods['title']}
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品价格</label>
                            <div class="col-sm-5">
                                <p>￥{$goods.price}元</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">首页图片</label>
                            <div class="col-sm-10">
                                <volist name="goods.h_imgs" id="vo">
                                    <img height="100px" src="{$vo}" style="margin-right:15px;" />
                                </volist>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" style="padding-top: 15px">发布人</label>
                            <div class="col-sm-5">
                                <p>
                                    {$goods.member.nickname}
                                    <img style="width:50px;height:50px;border-radius:50%;margin-left: 5px;" src="{$goods.member.avatar}"/>
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" style="padding-top: 0">订单状态</label>
                            <div class="col-sm-5">
                                <p>
                                    <button type="button" class="btn btn-primary btn-xs">
                                        <switch name="info.state" >
                                            <case value="0">申请中</case>
                                            <case value="1">申请成功</case>
                                            <case value="2">已发货</case>
                                            <case value="3">待核销</case>
                                            <case value="4">待评价</case>
                                            <case value="5">已评价</case>
                                            <case value="6">失败</case>
                                        </switch>
                                    </button>
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">编号</label>
                            <div class="col-sm-5">
                                <p>
                                    {$info.order_sn}
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">下单时间</label>
                            <div class="col-sm-5">
                                <p>
                                    {$info['addtime']|date="Y-m-d H:i",###}
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">结束时间</label>
                            <div class="col-sm-5">
                                <p>
                                    {$info['endtime']|date="Y-m-d H:i",###}
                                </p>
                            </div>
                        </div>


                        <!--&lt;!&ndash;如果是已付款状态&ndash;&gt;、-->
                        <!--<if condition="$c_info['num'] neq 0 ">-->
                        <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label" style="padding-top: 15px">拼团人员</label>-->
                        <!--<div class="col-sm-5">-->
                        <!--<volist name="group_member" id="vo">-->
                        <!--<p>-->
                        <!--{$vo.nickname}-->
                        <!--</p>-->
                        <!--<img style="width:50px;height:50px;border-radius:50%;margin: 0 5px;" src="{$vo.avatar}"/>-->
                        <!--</volist>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</if>-->

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <switch name="info['state']">
                                    <case value="1">
                                        <button class="btn btn-primary" onClick="deliver('{$info.id}')" style="width: 100px; margin-right: 50px">发货</button>
                                    </case>
                                    <case value="2">
                                        <button class="btn btn-primary" onClick="advising('{$info.id}')" style="width: 100px; margin-right: 50px">到货通知</button>
                                    </case>
                                </switch>
                                <button class="btn btn-primary" onClick="window.location.href='__MODULE__/ForetasteOrder'" style="width: 100px">返回首页</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function deliver(id){
        window.location.href='__MODULE__/ForetasteOrder/deliver?oid='+id;
    }
    function advising(id){
        window.location.href='__MODULE__/ForetasteOrder/advising?oid='+id;
    }
</script>
</body>


</html>